/* draw routines for SDL */
#ifndef _SDL_draw_h
#define _SDL_draw_h

extern DECLSPEC void SDL_DrawPixel(SDL_Surface *super,
                     Sint16 x, Sint16 y, Uint32 color);
extern DECLSPEC void SDL_DrawLine(SDL_Surface *super,
                    Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,
                    Uint32 color);
extern DECLSPEC void SDL_DrawCircle(SDL_Surface *super,
                      Sint16 x0, Sint16 y0, Uint16 r,
                      Uint32 color);
extern DECLSPEC void SDL_DrawFillCircle(SDL_Surface *super,
                          Sint16 x0, Sint16 y0, Uint16 r,
                          Uint32 color);
extern DECLSPEC void SDL_DrawHLine(SDL_Surface *super,
                     Sint16 x0,Sint16 y0, Sint16 x1,
                     Uint32 color);
extern DECLSPEC void SDL_DrawVLine(SDL_Surface *super,
                     Sint16 x0,Sint16 y0, Sint16 y1,
                     Uint32 color);
extern DECLSPEC void SDL_DrawRect(SDL_Surface *super,
                    Sint16 x,Sint16 y, Uint16 w,Uint16 h,
                    Uint32 color);
/* We wrap SDL_FillRect with the SDL_draw name convention */
#define SDL_DrawFillRect(SUPER, X, Y, W, H, COLOR) \
  do {                                          \
    SDL_Rect r = {(X), (Y), (W), (H)};          \
    SDL_FillRect((SUPER), &r, (COLOR));         \
  }while(0)
extern DECLSPEC void SDL_DrawEllipse(SDL_Surface *super,
                       Sint16 x0, Sint16 y0,
                       Uint16 Xradius, Uint16 Yradius,
                       Uint32 color);
extern DECLSPEC void SDL_DrawFillEllipse(SDL_Surface *super,
                           Sint16 x0, Sint16 y0,
                           Uint16 Xradius, Uint16 Yradius,
                           Uint32 color);
extern DECLSPEC void SDL_DrawRound(SDL_Surface *super,
                     Sint16 x0,Sint16 y0, Uint16 w,Uint16 h,
                     Uint16 corner, Uint32 color);
extern DECLSPEC void SDL_DrawFillRound(SDL_Surface *super,
                         Sint16 x0,Sint16 y0, Uint16 w,Uint16 h,
                         Uint16 corner, Uint32 color);
						 

#endif _SDL_draw_h